/*
 * 英才汇硕信息科技有限公司 拥有本软件版权 2023 并保留所有权利。
 * Copyright 2022, YCHS Information&Science Technology Co.,Ltd,
 * All rights reserved.
 */
package com.along.lawyermanage.dongao.service;

import com.along.lawyermanage.dongao.entity.Lawyer;

import java.util.List;

/**
 * 律师档案业务接口
 * @author Liulongbing
 * @version 1.0
 */
public interface LawyerService {

    /**
     * 添加律师
     * @param lawyer
     * @return 添加成功返回1，否则返回0
     */
    public int addLaywer(Lawyer lawyer);

    /**
     * 查询所有律师
     * @return 返回数据库中律师集合
     */
    public List<Lawyer>  findLawyer();

    /**
     * 按照指定编号删除律师信息
     * @param lawyerId 律师编号
     * @return 返回1 则删除成功：否则删除失败
     */
    public int removeLawyer(int lawyerId);
}
